﻿using System;
using System.ComponentModel;
using System.Reflection;
using System.Runtime.InteropServices;
using Teigha.Core;

namespace Teigha.TD
{
	public class OdDbLayoutManagerReactor : OdRxObject
	{
		[EditorBrowsable(EditorBrowsableState.Never)]
		public OdDbLayoutManagerReactor(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdDbLayoutManagerReactor_SWIGUpcast(cPtr), cMemoryOwn)
		{
			this.swigCPtr = new HandleRef(this, cPtr);
		}

		[EditorBrowsable(EditorBrowsableState.Never)]
		public static HandleRef getCPtr(OdDbLayoutManagerReactor obj)
		{
			if (obj != null)
			{
				return obj.swigCPtr;
			}
			return new HandleRef(null, IntPtr.Zero);
		}

		~OdDbLayoutManagerReactor()
		{
			this.Dispose();
		}

		public override void Dispose()
		{
			if (this.swigCPtr.Handle != IntPtr.Zero)
			{
				if (this.swigCMemOwn)
				{
					lock (this.locker)
					{
						if (this.swigCPtr.Handle != IntPtr.Zero && this.swigCMemOwn)
						{
							this.swigCMemOwn = false;
							TD_DbPINVOKE.delete_OdDbLayoutManagerReactor(this.swigCPtr);
						}
					}
					this.swigCMemOwn = false;
				}
				this.swigCPtr = new HandleRef(null, IntPtr.Zero);
			}
			GC.SuppressFinalize(this);
			base.Dispose();
		}

		public OdDbLayoutManagerReactor() : this(TD_DbPINVOKE.new_OdDbLayoutManagerReactor(), MemoryManager.GetMemoryManager().GetCurrentTransaction() == null)
		{
			MemoryTransaction currentTransaction = MemoryManager.GetMemoryManager().GetCurrentTransaction();
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbLayoutManagerReactor(this.swigCPtr.Handle, true));
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			this.SwigDirectorConnect();
		}

		public new static OdDbLayoutManagerReactor cast(OdRxObject pObj)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.OdDbLayoutManagerReactor_cast(OdRxObject.getCPtr(pObj));
			OdDbLayoutManagerReactor result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbLayoutManagerReactor)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbLayoutManagerReactor)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbLayoutManagerReactor)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new static OdRxClass desc()
		{
			OdRxClass result = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternal(TD_DbPINVOKE.OdDbLayoutManagerReactor_desc(), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdRxClass isA()
		{
			OdRxClass result = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternal(this.SwigDerivedClassHasMethod("isA", OdDbLayoutManagerReactor.swigMethodTypes1) ? TD_DbPINVOKE.OdDbLayoutManagerReactor_isASwigExplicitOdDbLayoutManagerReactor(this.swigCPtr) : TD_DbPINVOKE.OdDbLayoutManagerReactor_isA(this.swigCPtr), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdRxObject queryX(OdRxClass protocolClass)
		{
			OdRxObject result = Teigha.Core.Helpers.odrxCreateObjectInternal(this.SwigDerivedClassHasMethod("queryX", OdDbLayoutManagerReactor.swigMethodTypes0) ? TD_DbPINVOKE.OdDbLayoutManagerReactor_queryXSwigExplicitOdDbLayoutManagerReactor(this.swigCPtr, OdRxClass.getCPtr(protocolClass)) : TD_DbPINVOKE.OdDbLayoutManagerReactor_queryX(this.swigCPtr, OdRxClass.getCPtr(protocolClass)), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdDbLayoutManagerReactor createObject()
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.OdDbLayoutManagerReactor_createObject();
			OdDbLayoutManagerReactor result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbLayoutManagerReactor)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbLayoutManagerReactor)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbLayoutManagerReactor)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void layoutCreated(string layoutName, OdDbObjectId layoutId)
		{
			if (this.SwigDerivedClassHasMethod("layoutCreated", OdDbLayoutManagerReactor.swigMethodTypes2))
			{
				TD_DbPINVOKE.OdDbLayoutManagerReactor_layoutCreatedSwigExplicitOdDbLayoutManagerReactor(this.swigCPtr, layoutName, OdDbObjectId.getCPtr(layoutId));
			}
			else
			{
				TD_DbPINVOKE.OdDbLayoutManagerReactor_layoutCreated(this.swigCPtr, layoutName, OdDbObjectId.getCPtr(layoutId));
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void layoutToBeRemoved(string layoutName, OdDbObjectId layoutId)
		{
			if (this.SwigDerivedClassHasMethod("layoutToBeRemoved", OdDbLayoutManagerReactor.swigMethodTypes3))
			{
				TD_DbPINVOKE.OdDbLayoutManagerReactor_layoutToBeRemovedSwigExplicitOdDbLayoutManagerReactor(this.swigCPtr, layoutName, OdDbObjectId.getCPtr(layoutId));
			}
			else
			{
				TD_DbPINVOKE.OdDbLayoutManagerReactor_layoutToBeRemoved(this.swigCPtr, layoutName, OdDbObjectId.getCPtr(layoutId));
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void layoutRemoved(string layoutName, OdDbObjectId layoutId)
		{
			if (this.SwigDerivedClassHasMethod("layoutRemoved", OdDbLayoutManagerReactor.swigMethodTypes4))
			{
				TD_DbPINVOKE.OdDbLayoutManagerReactor_layoutRemovedSwigExplicitOdDbLayoutManagerReactor(this.swigCPtr, layoutName, OdDbObjectId.getCPtr(layoutId));
			}
			else
			{
				TD_DbPINVOKE.OdDbLayoutManagerReactor_layoutRemoved(this.swigCPtr, layoutName, OdDbObjectId.getCPtr(layoutId));
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void abortLayoutRemoved(string layoutName, OdDbObjectId layoutId)
		{
			if (this.SwigDerivedClassHasMethod("abortLayoutRemoved", OdDbLayoutManagerReactor.swigMethodTypes5))
			{
				TD_DbPINVOKE.OdDbLayoutManagerReactor_abortLayoutRemovedSwigExplicitOdDbLayoutManagerReactor(this.swigCPtr, layoutName, OdDbObjectId.getCPtr(layoutId));
			}
			else
			{
				TD_DbPINVOKE.OdDbLayoutManagerReactor_abortLayoutRemoved(this.swigCPtr, layoutName, OdDbObjectId.getCPtr(layoutId));
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void layoutToBeCopied(string layoutName, OdDbObjectId layoutId)
		{
			if (this.SwigDerivedClassHasMethod("layoutToBeCopied", OdDbLayoutManagerReactor.swigMethodTypes6))
			{
				TD_DbPINVOKE.OdDbLayoutManagerReactor_layoutToBeCopiedSwigExplicitOdDbLayoutManagerReactor(this.swigCPtr, layoutName, OdDbObjectId.getCPtr(layoutId));
			}
			else
			{
				TD_DbPINVOKE.OdDbLayoutManagerReactor_layoutToBeCopied(this.swigCPtr, layoutName, OdDbObjectId.getCPtr(layoutId));
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void layoutCopied(string oldLayoutName, OdDbObjectId oldLayoutId, string newLayoutName, OdDbObjectId newLayoutId)
		{
			if (this.SwigDerivedClassHasMethod("layoutCopied", OdDbLayoutManagerReactor.swigMethodTypes7))
			{
				TD_DbPINVOKE.OdDbLayoutManagerReactor_layoutCopiedSwigExplicitOdDbLayoutManagerReactor(this.swigCPtr, oldLayoutName, OdDbObjectId.getCPtr(oldLayoutId), newLayoutName, OdDbObjectId.getCPtr(newLayoutId));
			}
			else
			{
				TD_DbPINVOKE.OdDbLayoutManagerReactor_layoutCopied(this.swigCPtr, oldLayoutName, OdDbObjectId.getCPtr(oldLayoutId), newLayoutName, OdDbObjectId.getCPtr(newLayoutId));
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void abortLayoutCopied(string layoutName, OdDbObjectId layoutId)
		{
			if (this.SwigDerivedClassHasMethod("abortLayoutCopied", OdDbLayoutManagerReactor.swigMethodTypes8))
			{
				TD_DbPINVOKE.OdDbLayoutManagerReactor_abortLayoutCopiedSwigExplicitOdDbLayoutManagerReactor(this.swigCPtr, layoutName, OdDbObjectId.getCPtr(layoutId));
			}
			else
			{
				TD_DbPINVOKE.OdDbLayoutManagerReactor_abortLayoutCopied(this.swigCPtr, layoutName, OdDbObjectId.getCPtr(layoutId));
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void layoutToBeRenamed(string oldLayoutName, string newLayoutName, OdDbObjectId layoutId)
		{
			if (this.SwigDerivedClassHasMethod("layoutToBeRenamed", OdDbLayoutManagerReactor.swigMethodTypes9))
			{
				TD_DbPINVOKE.OdDbLayoutManagerReactor_layoutToBeRenamedSwigExplicitOdDbLayoutManagerReactor(this.swigCPtr, oldLayoutName, newLayoutName, OdDbObjectId.getCPtr(layoutId));
			}
			else
			{
				TD_DbPINVOKE.OdDbLayoutManagerReactor_layoutToBeRenamed(this.swigCPtr, oldLayoutName, newLayoutName, OdDbObjectId.getCPtr(layoutId));
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void layoutRenamed(string oldLayoutName, string newLayoutName, OdDbObjectId layoutId)
		{
			if (this.SwigDerivedClassHasMethod("layoutRenamed", OdDbLayoutManagerReactor.swigMethodTypes10))
			{
				TD_DbPINVOKE.OdDbLayoutManagerReactor_layoutRenamedSwigExplicitOdDbLayoutManagerReactor(this.swigCPtr, oldLayoutName, newLayoutName, OdDbObjectId.getCPtr(layoutId));
			}
			else
			{
				TD_DbPINVOKE.OdDbLayoutManagerReactor_layoutRenamed(this.swigCPtr, oldLayoutName, newLayoutName, OdDbObjectId.getCPtr(layoutId));
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void abortLayoutRename(string oldLayoutName, string newLayoutName, OdDbObjectId layoutId)
		{
			if (this.SwigDerivedClassHasMethod("abortLayoutRename", OdDbLayoutManagerReactor.swigMethodTypes11))
			{
				TD_DbPINVOKE.OdDbLayoutManagerReactor_abortLayoutRenameSwigExplicitOdDbLayoutManagerReactor(this.swigCPtr, oldLayoutName, newLayoutName, OdDbObjectId.getCPtr(layoutId));
			}
			else
			{
				TD_DbPINVOKE.OdDbLayoutManagerReactor_abortLayoutRename(this.swigCPtr, oldLayoutName, newLayoutName, OdDbObjectId.getCPtr(layoutId));
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void layoutSwitched(string newLayoutName, OdDbObjectId newLayoutId)
		{
			if (this.SwigDerivedClassHasMethod("layoutSwitched", OdDbLayoutManagerReactor.swigMethodTypes12))
			{
				TD_DbPINVOKE.OdDbLayoutManagerReactor_layoutSwitchedSwigExplicitOdDbLayoutManagerReactor(this.swigCPtr, newLayoutName, OdDbObjectId.getCPtr(newLayoutId));
			}
			else
			{
				TD_DbPINVOKE.OdDbLayoutManagerReactor_layoutSwitched(this.swigCPtr, newLayoutName, OdDbObjectId.getCPtr(newLayoutId));
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void plotStyleTableChanged(string newTableName, OdDbObjectId layoutId)
		{
			if (this.SwigDerivedClassHasMethod("plotStyleTableChanged", OdDbLayoutManagerReactor.swigMethodTypes13))
			{
				TD_DbPINVOKE.OdDbLayoutManagerReactor_plotStyleTableChangedSwigExplicitOdDbLayoutManagerReactor(this.swigCPtr, newTableName, OdDbObjectId.getCPtr(layoutId));
			}
			else
			{
				TD_DbPINVOKE.OdDbLayoutManagerReactor_plotStyleTableChanged(this.swigCPtr, newTableName, OdDbObjectId.getCPtr(layoutId));
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void layoutToBeDeactivated(string layoutName, OdDbObjectId layoutId)
		{
			if (this.SwigDerivedClassHasMethod("layoutToBeDeactivated", OdDbLayoutManagerReactor.swigMethodTypes14))
			{
				TD_DbPINVOKE.OdDbLayoutManagerReactor_layoutToBeDeactivatedSwigExplicitOdDbLayoutManagerReactor(this.swigCPtr, layoutName, OdDbObjectId.getCPtr(layoutId));
			}
			else
			{
				TD_DbPINVOKE.OdDbLayoutManagerReactor_layoutToBeDeactivated(this.swigCPtr, layoutName, OdDbObjectId.getCPtr(layoutId));
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		private void SwigDirectorConnect()
		{
			if (this.SwigDerivedClassHasMethod("queryX", OdDbLayoutManagerReactor.swigMethodTypes0))
			{
				this.swigDelegate0 = new OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_0(this.SwigDirectorqueryX);
			}
			if (this.SwigDerivedClassHasMethod("isA", OdDbLayoutManagerReactor.swigMethodTypes1))
			{
				this.swigDelegate1 = new OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_1(this.SwigDirectorisA);
			}
			if (this.SwigDerivedClassHasMethod("layoutCreated", OdDbLayoutManagerReactor.swigMethodTypes2))
			{
				this.swigDelegate2 = new OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_2(this.SwigDirectorlayoutCreated);
			}
			if (this.SwigDerivedClassHasMethod("layoutToBeRemoved", OdDbLayoutManagerReactor.swigMethodTypes3))
			{
				this.swigDelegate3 = new OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_3(this.SwigDirectorlayoutToBeRemoved);
			}
			if (this.SwigDerivedClassHasMethod("layoutRemoved", OdDbLayoutManagerReactor.swigMethodTypes4))
			{
				this.swigDelegate4 = new OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_4(this.SwigDirectorlayoutRemoved);
			}
			if (this.SwigDerivedClassHasMethod("abortLayoutRemoved", OdDbLayoutManagerReactor.swigMethodTypes5))
			{
				this.swigDelegate5 = new OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_5(this.SwigDirectorabortLayoutRemoved);
			}
			if (this.SwigDerivedClassHasMethod("layoutToBeCopied", OdDbLayoutManagerReactor.swigMethodTypes6))
			{
				this.swigDelegate6 = new OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_6(this.SwigDirectorlayoutToBeCopied);
			}
			if (this.SwigDerivedClassHasMethod("layoutCopied", OdDbLayoutManagerReactor.swigMethodTypes7))
			{
				this.swigDelegate7 = new OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_7(this.SwigDirectorlayoutCopied);
			}
			if (this.SwigDerivedClassHasMethod("abortLayoutCopied", OdDbLayoutManagerReactor.swigMethodTypes8))
			{
				this.swigDelegate8 = new OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_8(this.SwigDirectorabortLayoutCopied);
			}
			if (this.SwigDerivedClassHasMethod("layoutToBeRenamed", OdDbLayoutManagerReactor.swigMethodTypes9))
			{
				this.swigDelegate9 = new OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_9(this.SwigDirectorlayoutToBeRenamed);
			}
			if (this.SwigDerivedClassHasMethod("layoutRenamed", OdDbLayoutManagerReactor.swigMethodTypes10))
			{
				this.swigDelegate10 = new OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_10(this.SwigDirectorlayoutRenamed);
			}
			if (this.SwigDerivedClassHasMethod("abortLayoutRename", OdDbLayoutManagerReactor.swigMethodTypes11))
			{
				this.swigDelegate11 = new OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_11(this.SwigDirectorabortLayoutRename);
			}
			if (this.SwigDerivedClassHasMethod("layoutSwitched", OdDbLayoutManagerReactor.swigMethodTypes12))
			{
				this.swigDelegate12 = new OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_12(this.SwigDirectorlayoutSwitched);
			}
			if (this.SwigDerivedClassHasMethod("plotStyleTableChanged", OdDbLayoutManagerReactor.swigMethodTypes13))
			{
				this.swigDelegate13 = new OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_13(this.SwigDirectorplotStyleTableChanged);
			}
			if (this.SwigDerivedClassHasMethod("layoutToBeDeactivated", OdDbLayoutManagerReactor.swigMethodTypes14))
			{
				this.swigDelegate14 = new OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_14(this.SwigDirectorlayoutToBeDeactivated);
			}
			TD_DbPINVOKE.OdDbLayoutManagerReactor_director_connect(this.swigCPtr, this.swigDelegate0, this.swigDelegate1, this.swigDelegate2, this.swigDelegate3, this.swigDelegate4, this.swigDelegate5, this.swigDelegate6, this.swigDelegate7, this.swigDelegate8, this.swigDelegate9, this.swigDelegate10, this.swigDelegate11, this.swigDelegate12, this.swigDelegate13, this.swigDelegate14);
		}

		private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes)
		{
			MethodInfo method = base.GetType().GetMethod(methodName, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, methodTypes, null);
			return method.DeclaringType.IsSubclassOf(typeof(OdDbLayoutManagerReactor));
		}

		private IntPtr SwigDirectorqueryX(IntPtr protocolClass)
		{
			return OdRxObject.getCPtr(this.queryX((OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternal(protocolClass, false))).Handle;
		}

		private IntPtr SwigDirectorisA()
		{
			return OdRxClass.getCPtr(this.isA()).Handle;
		}

		private void SwigDirectorlayoutCreated([MarshalAs(UnmanagedType.LPWStr)] string layoutName, IntPtr layoutId)
		{
			this.layoutCreated(layoutName, new OdDbObjectId(layoutId, false));
		}

		private void SwigDirectorlayoutToBeRemoved([MarshalAs(UnmanagedType.LPWStr)] string layoutName, IntPtr layoutId)
		{
			this.layoutToBeRemoved(layoutName, new OdDbObjectId(layoutId, false));
		}

		private void SwigDirectorlayoutRemoved([MarshalAs(UnmanagedType.LPWStr)] string layoutName, IntPtr layoutId)
		{
			this.layoutRemoved(layoutName, new OdDbObjectId(layoutId, false));
		}

		private void SwigDirectorabortLayoutRemoved([MarshalAs(UnmanagedType.LPWStr)] string layoutName, IntPtr layoutId)
		{
			this.abortLayoutRemoved(layoutName, new OdDbObjectId(layoutId, false));
		}

		private void SwigDirectorlayoutToBeCopied([MarshalAs(UnmanagedType.LPWStr)] string layoutName, IntPtr layoutId)
		{
			this.layoutToBeCopied(layoutName, new OdDbObjectId(layoutId, false));
		}

		private void SwigDirectorlayoutCopied([MarshalAs(UnmanagedType.LPWStr)] string oldLayoutName, IntPtr oldLayoutId, [MarshalAs(UnmanagedType.LPWStr)] string newLayoutName, IntPtr newLayoutId)
		{
			this.layoutCopied(oldLayoutName, new OdDbObjectId(oldLayoutId, false), newLayoutName, new OdDbObjectId(newLayoutId, false));
		}

		private void SwigDirectorabortLayoutCopied([MarshalAs(UnmanagedType.LPWStr)] string layoutName, IntPtr layoutId)
		{
			this.abortLayoutCopied(layoutName, new OdDbObjectId(layoutId, false));
		}

		private void SwigDirectorlayoutToBeRenamed([MarshalAs(UnmanagedType.LPWStr)] string oldLayoutName, [MarshalAs(UnmanagedType.LPWStr)] string newLayoutName, IntPtr layoutId)
		{
			this.layoutToBeRenamed(oldLayoutName, newLayoutName, new OdDbObjectId(layoutId, false));
		}

		private void SwigDirectorlayoutRenamed([MarshalAs(UnmanagedType.LPWStr)] string oldLayoutName, [MarshalAs(UnmanagedType.LPWStr)] string newLayoutName, IntPtr layoutId)
		{
			this.layoutRenamed(oldLayoutName, newLayoutName, new OdDbObjectId(layoutId, false));
		}

		private void SwigDirectorabortLayoutRename([MarshalAs(UnmanagedType.LPWStr)] string oldLayoutName, [MarshalAs(UnmanagedType.LPWStr)] string newLayoutName, IntPtr layoutId)
		{
			this.abortLayoutRename(oldLayoutName, newLayoutName, new OdDbObjectId(layoutId, false));
		}

		private void SwigDirectorlayoutSwitched([MarshalAs(UnmanagedType.LPWStr)] string newLayoutName, IntPtr newLayoutId)
		{
			this.layoutSwitched(newLayoutName, new OdDbObjectId(newLayoutId, false));
		}

		private void SwigDirectorplotStyleTableChanged([MarshalAs(UnmanagedType.LPWStr)] string newTableName, IntPtr layoutId)
		{
			this.plotStyleTableChanged(newTableName, new OdDbObjectId(layoutId, false));
		}

		private void SwigDirectorlayoutToBeDeactivated([MarshalAs(UnmanagedType.LPWStr)] string layoutName, IntPtr layoutId)
		{
			this.layoutToBeDeactivated(layoutName, new OdDbObjectId(layoutId, false));
		}

		private object locker = new object();

		private HandleRef swigCPtr;

		private OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_0 swigDelegate0;

		private OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_1 swigDelegate1;

		private OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_2 swigDelegate2;

		private OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_3 swigDelegate3;

		private OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_4 swigDelegate4;

		private OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_5 swigDelegate5;

		private OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_6 swigDelegate6;

		private OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_7 swigDelegate7;

		private OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_8 swigDelegate8;

		private OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_9 swigDelegate9;

		private OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_10 swigDelegate10;

		private OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_11 swigDelegate11;

		private OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_12 swigDelegate12;

		private OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_13 swigDelegate13;

		private OdDbLayoutManagerReactor.SwigDelegateOdDbLayoutManagerReactor_14 swigDelegate14;

		private static Type[] swigMethodTypes0 = new Type[]
		{
			typeof(OdRxClass)
		};

		private static Type[] swigMethodTypes1 = new Type[0];

		private static Type[] swigMethodTypes2 = new Type[]
		{
			typeof(string),
			typeof(OdDbObjectId)
		};

		private static Type[] swigMethodTypes3 = new Type[]
		{
			typeof(string),
			typeof(OdDbObjectId)
		};

		private static Type[] swigMethodTypes4 = new Type[]
		{
			typeof(string),
			typeof(OdDbObjectId)
		};

		private static Type[] swigMethodTypes5 = new Type[]
		{
			typeof(string),
			typeof(OdDbObjectId)
		};

		private static Type[] swigMethodTypes6 = new Type[]
		{
			typeof(string),
			typeof(OdDbObjectId)
		};

		private static Type[] swigMethodTypes7 = new Type[]
		{
			typeof(string),
			typeof(OdDbObjectId),
			typeof(string),
			typeof(OdDbObjectId)
		};

		private static Type[] swigMethodTypes8 = new Type[]
		{
			typeof(string),
			typeof(OdDbObjectId)
		};

		private static Type[] swigMethodTypes9 = new Type[]
		{
			typeof(string),
			typeof(string),
			typeof(OdDbObjectId)
		};

		private static Type[] swigMethodTypes10 = new Type[]
		{
			typeof(string),
			typeof(string),
			typeof(OdDbObjectId)
		};

		private static Type[] swigMethodTypes11 = new Type[]
		{
			typeof(string),
			typeof(string),
			typeof(OdDbObjectId)
		};

		private static Type[] swigMethodTypes12 = new Type[]
		{
			typeof(string),
			typeof(OdDbObjectId)
		};

		private static Type[] swigMethodTypes13 = new Type[]
		{
			typeof(string),
			typeof(OdDbObjectId)
		};

		private static Type[] swigMethodTypes14 = new Type[]
		{
			typeof(string),
			typeof(OdDbObjectId)
		};

		public delegate IntPtr SwigDelegateOdDbLayoutManagerReactor_0(IntPtr protocolClass);

		public delegate IntPtr SwigDelegateOdDbLayoutManagerReactor_1();

		public delegate void SwigDelegateOdDbLayoutManagerReactor_2([MarshalAs(UnmanagedType.LPWStr)] string layoutName, IntPtr layoutId);

		public delegate void SwigDelegateOdDbLayoutManagerReactor_3([MarshalAs(UnmanagedType.LPWStr)] string layoutName, IntPtr layoutId);

		public delegate void SwigDelegateOdDbLayoutManagerReactor_4([MarshalAs(UnmanagedType.LPWStr)] string layoutName, IntPtr layoutId);

		public delegate void SwigDelegateOdDbLayoutManagerReactor_5([MarshalAs(UnmanagedType.LPWStr)] string layoutName, IntPtr layoutId);

		public delegate void SwigDelegateOdDbLayoutManagerReactor_6([MarshalAs(UnmanagedType.LPWStr)] string layoutName, IntPtr layoutId);

		public delegate void SwigDelegateOdDbLayoutManagerReactor_7([MarshalAs(UnmanagedType.LPWStr)] string oldLayoutName, IntPtr oldLayoutId, [MarshalAs(UnmanagedType.LPWStr)] string newLayoutName, IntPtr newLayoutId);

		public delegate void SwigDelegateOdDbLayoutManagerReactor_8([MarshalAs(UnmanagedType.LPWStr)] string layoutName, IntPtr layoutId);

		public delegate void SwigDelegateOdDbLayoutManagerReactor_9([MarshalAs(UnmanagedType.LPWStr)] string oldLayoutName, [MarshalAs(UnmanagedType.LPWStr)] string newLayoutName, IntPtr layoutId);

		public delegate void SwigDelegateOdDbLayoutManagerReactor_10([MarshalAs(UnmanagedType.LPWStr)] string oldLayoutName, [MarshalAs(UnmanagedType.LPWStr)] string newLayoutName, IntPtr layoutId);

		public delegate void SwigDelegateOdDbLayoutManagerReactor_11([MarshalAs(UnmanagedType.LPWStr)] string oldLayoutName, [MarshalAs(UnmanagedType.LPWStr)] string newLayoutName, IntPtr layoutId);

		public delegate void SwigDelegateOdDbLayoutManagerReactor_12([MarshalAs(UnmanagedType.LPWStr)] string newLayoutName, IntPtr newLayoutId);

		public delegate void SwigDelegateOdDbLayoutManagerReactor_13([MarshalAs(UnmanagedType.LPWStr)] string newTableName, IntPtr layoutId);

		public delegate void SwigDelegateOdDbLayoutManagerReactor_14([MarshalAs(UnmanagedType.LPWStr)] string layoutName, IntPtr layoutId);
	}
}
